package com.project.personnel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Employeeretire implements Serializable{
    /**
     * <p>
     *员工离职
     * </p>
     *
     * @author diaominyh
     * @since 2022-12-30
     */


        private static final long serialVersionUID = 1L;
        /**
         * 表id
         */
        @TableId(value ="id", type = IdType.AUTO)
        private Integer id;

        /**
         * 员工编号
         */
        @TableField(value = "eid")
        private Integer eid;

        /**
         * 员工姓名
         */
        @TableField("empName")
        private String empName;

        /**
         * 离职日期
         */
        @TableField("retireDate")
        private Date retireDate;

        /**
         * 离职类型，0代表内部辞退，1代表主动离职（个人离职）
         */
        @TableField("retireType")
        private Integer retireType;

        /**
         * 离职原因
         */
        @TableField("retireReason")
        private String retireReason;

}
